package com.liveneo.adapter.mobile.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.liveneo.adapter.base.entity.PrpmLossConfirm;
import com.liveneo.adapter.base.mapper.PrpmLossConfirmMapper;
import com.liveneo.adapter.mobile.service.LossConfirmService;

@Service
public class LossConfirmServiceImpl implements LossConfirmService {
    @Autowired
    private PrpmLossConfirmMapper prpmLossConfirmMapper;

    @Override
    public int insert(PrpmLossConfirm record) {
        return prpmLossConfirmMapper.insert(record);
    }

    @Override
    public int insertBatch(List<PrpmLossConfirm> list) {
        return prpmLossConfirmMapper.insertBatch(list);
    }

	@Override
	public PrpmLossConfirm selectByPrimaryKey(String lossConfirmId) {
		return prpmLossConfirmMapper.selectByPrimaryKey(lossConfirmId);
	}

	@Override
	public PrpmLossConfirm selectByLossItemId(String lossItemId) {
		return prpmLossConfirmMapper.selectByLossItemId(lossItemId);
	}

	@Override
	public int updateByPrimaryKeySelective(PrpmLossConfirm record) {
		return prpmLossConfirmMapper.updateByPrimaryKeySelective(record);
	}
}
